package com.iot.manage.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import com.iot.common.core.constant.ServiceNameConstants;
import com.iot.common.core.util.R;
import com.iot.manage.api.domain.SysUser;
import com.iot.manage.api.feign.factory.RemoteUserServiceFallbackFactory;

@FeignClient(contextId = "remoteUserService", value = ServiceNameConstants.MANAGE_SERVICE,
		fallbackFactory = RemoteUserServiceFallbackFactory.class)
public interface RemoteUserService {

	
	@GetMapping("/user/info/{username}")
	R<SysUser> info(@PathVariable("username") String username);
	

}
